import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_todolist/pages/home/home.dart';
import 'package:flutter_todolist/pages/launch/launch.dart';
import 'package:flutter_todolist/util.dart';
import 'package:get/get.dart';
import 'package:get/get_navigation/src/root/get_material_app.dart';

import 'pages/on_boarding/onboarding.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return ScreenUtilInit(
      designSize: const Size(375, 667),
      builder: (context, child) {
        return GetMaterialApp(
          title: 'Flutter Todo',
          theme: ThemeData(
            useMaterial3: true,
            canvasColor: CustomColors.GreyBackground,
            fontFamily: 'rubik',
          ),
          home: const LaunchPage(),
          defaultTransition: Transition.zoom,
        );
      }
    );
  }
}


